import request from '@/utils/request'

// 查询按产品划分的排放列表
export function listProductEmissions(query) {
  return request({
    url: '/result/productEmissions/list',
    method: 'get',
    params: query
  })
}

// 查询按产品划分的排放详细
export function getProductEmissions(id) {
  return request({
    url: '/result/productEmissions/' + id,
    method: 'get'
  })
}

// 新增按产品划分的排放
export function addProductEmissions(data) {
  return request({
    url: '/result/productEmissions',
    method: 'post',
    data: data
  })
}

// 修改按产品划分的排放
export function updateProductEmissions(data) {
  return request({
    url: '/result/productEmissions',
    method: 'put',
    data: data
  })
}

// 删除按产品划分的排放
export function delProductEmissions(id) {
  return request({
    url: '/result/productEmissions/' + id,
    method: 'delete'
  })
}

// 导出按产品划分的排放
export function exportProductEmissions(query) {
  return request({
    url: '/result/productEmissions/export',
    method: 'get',
    params: query
  })
}